package cn.czg.cms.service;


import cn.czg.cms.entity.User;

public interface UserService {
    User getById(Long id);

    User getByUsername(String username);

    User findByPhone(String phone);

    boolean register(String username, String password, String nickname);

    User login(String username, String password);

    void updateNickNameById(String id, String nickName);

    void updateAvatar(String id, String avatar);

    void updateGender(String id, int gender);
}
